//
//  GYAutoScale.m
//  ONE
//
//  Created by x on 2017/12/22.
//  Copyright © 2017年 HLB. All rights reserved.
//

#import "GYAutoScale.h"

@implementation GYAutoScale

+ (CGFloat)widthScale:(CGFloat)width originalSize:(CGFloat)originalWidth {
    
    return ScreenWidth/originalWidth * width;
}

+ (CGFloat)heightScale:(CGFloat)height originalSize:(CGFloat)originalHeight {
    
    return ScreenHeight/originalHeight *height;
}
@end
